package com.cgt.day5.Exercise;

public class Teacher extends Person{
    private String OfficeName;

    public Teacher(){
        super();
    }

    public Teacher(int id, int age, String name, String gender, String officeName) {
        super(id, age, name, gender);
        OfficeName = officeName;
    }

    @Override
    public void show() {
        System.out.println("Teacher.show");
    }

    @Override
    public String getRoomName() {
        return OfficeName;
    }
}
